import ctypes
import sys
import resources_rc

from FacileCal_Function import *

ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("FacileCal")  # 任务栏图标设置
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)  # 适配系统高DPI
QtWidgets.QApplication.setAttribute(QtCore.Qt.AA_UseHighDpiPixmaps)  # 适配系统高DPI


if __name__ == '__main__':
    my_app = QtWidgets.QApplication(sys.argv)
    ui = mainProgram()
    ui.setWindowIcon(QtGui.QIcon(':/images/Icon.ico'))
    ui.show()
    sys.exit(my_app.exec_())
